package biz.datalk.industrialland.common.encrypt.exception;


import biz.datalk.industrialland.common.result.UnifyResultCode;

/**
 * @author tarofang@163.com
 * @date 2019年07月11日
 */
public class AESException extends EncryptionException {

    private static final long serialVersionUID = 4499383568389429360L;

    public static final String MESSAGE = "ARS excepton";

    public AESException() {
        super(MESSAGE);
    }

    public AESException(String message) {
        super(message);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_AES;
    }

    public AESException(String code, String message) {
        super(message);
        this.code = code;
    }

    public AESException(String message, Throwable cause) {
        super(message, cause);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_AES;
    }

    public AESException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public AESException(Throwable cause) {
        super(cause);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_AES;
    }
}
